package com.yingxin.yx.framework.commons.enums;

/**
 * 表单类型
 */

public enum BusinessType {

    AUDIT_PROCESS("AUDIT_PROCESS", "审核流程"),
    AUDIT_TASK("AUDIT_TASK", "审核任务"),

    RZ("RZ", "热轧卷"),
    SX("SX", "酸洗卷"),
    ZY("ZY", "轧硬卷"),
    DX("DX", "镀锌卷"),
    CT("CT", "彩涂卷"),
    XD("XD", "锌锭"),
    XZ("XZ", "锌渣"),

    LINE10101("LINE10101", "酸洗A线(华泰)"),
    LINE10102("LINE10102", "轧硬A线(华泰)"),
    LINE10103("LINE10103", "轧硬B线(华泰)"),
    LINE10104("LINE10104", "轧硬C线(华泰)"),
    LINE10201("LINE10201", "酸洗B线(鑫泰)"),
    LINE10202("LINE10202", "轧硬D线(鑫泰)"),
    LINE10203("LINE10203", "轧硬E线(鑫泰)"),
    LINE10204("LINE10204", "轧硬F线(鑫泰)"),
    LINE10205("LINE10205", "轧硬G线(鑫泰)"),
    LINE10301("LINE10301", "酸洗C线(盈鑫)"),
    LINE10302("LINE10302", "轧硬H线(盈鑫)"),
    LINE10303("LINE10303", "轧硬I线(盈鑫)"),
    LINE10304("LINE10304", "镀锌A线(盈鑫)"),
    LINE10305("LINE10305", "镀锌B线(盈鑫)"),

    USER("USER", "用户"),
    USER_PHOTO("USER_PHOTO","员工照片"),
    USER_ID_PORTRAIT("USER_ID_PORTRAIT","员工身份证人像"),
    USER_ID_NATIONAL_EMBLEM("USER_ID_NATIONAL_EMBLEM","员工身份证国徽"),

    NONE(null, "NONE"),
    TZGG("TZGG", "通知公告"),
    TZGGLX("TZGGLX", "通知公告类型"),
    DEPT("DEPT", "部门"),
    ROLE("ROLE", "角色"),
    PERMISSION("PERMISSION", "权限"),
    BIZ_SETTING("BIZ_SETTING", "业务设置"),
    COMPANY_SETTING("COMPANY_SETTING", "厂区设置"),
    WJSQ("WJSQ","完结申请"),
    DYSQ("DYSQ", "打印申请"),
    ZFSQ("ZFSQ", "作废申请"),
    XGSQ("XGSQ", "编辑申请"),
    CXWJSQ("CXWJSQ","撤销完结申请"),

    TGJL("TGJL", "停工记录"),
    TEEDS("TEEDS", "任务执行异常日报表"),

    CGHT("CGHT", "采购合同"),
    XSHT("XSHT", "销售合同"),
    ;

    private String type;

    private String typeName;

    BusinessType(String type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }


    public static BusinessType getEnum(String type) {
        for (BusinessType t : BusinessType.values()) {
            if (t.getType().equals(type)) {
                return t;
            }
        }
        return null;
    }

}